﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProjectNocturnalFool
{
    class AdventureSelectScreen : MenuScreen
    {

        public override void LoadContent()
        {
            base.LoadContent();
            topBanner.message = "Adventure Select";

            int prevCtrl = contentPanel.y + Constants.ControlOffsets;
            int alignMiddle = Util.getCentreDrawPointX(contentPanel.x, contentPanel.width, Constants.ButtonWidthWide);

            //Generic buttons
            ButtonControl addBtn = new ButtonControl();
            addBtn.LoadContent();
            addBtn.xAnchor = HorizontalAnchor.Middle;
            addBtn.yAnchor = VerticleAnchor.Top;
            addBtn.type = Button_Type.AdventureSelectRegular;
            addBtn.style = Button_Style.Long;
            addBtn.y = prevCtrl;
            prevCtrl+= contentPanel.y + Constants.ControlOffsets;
            addBtn.x = alignMiddle;
            contentPanel.controls.Add(addBtn);

            //Generic buttons
            addBtn = new ButtonControl();
            addBtn.LoadContent();
            addBtn.xAnchor = HorizontalAnchor.Middle;
            addBtn.yAnchor = VerticleAnchor.Top;
            addBtn.type = Button_Type.AdventureSelectHard;
            addBtn.style = Button_Style.Long;
            addBtn.y = prevCtrl;
            prevCtrl += contentPanel.y + Constants.ControlOffsets;
            addBtn.x = alignMiddle;
            addBtn.active = false;
            contentPanel.controls.Add(addBtn);

            addBtn = new ButtonControl();
            addBtn.LoadContent();
            addBtn.xAnchor = HorizontalAnchor.Middle;
            addBtn.yAnchor = VerticleAnchor.Top;
            addBtn.type = Button_Type.AdventureSelectDLC;
            addBtn.style = Button_Style.Long;
            addBtn.y = prevCtrl;
            prevCtrl += contentPanel.y + Constants.ControlOffsets;
            addBtn.x = alignMiddle;
            addBtn.active = false;
            contentPanel.controls.Add(addBtn);

            addBtn = new ButtonControl();
            addBtn.LoadContent();
            addBtn.xAnchor = HorizontalAnchor.Middle;
            addBtn.yAnchor = VerticleAnchor.Top;
            addBtn.type = Button_Type.AdventureSelectCancel;
            addBtn.style = Button_Style.Long;
            addBtn.y = contentPanel.y + contentPanel.height - (Constants.ControlOffsets + addBtn.height);           
            addBtn.x = alignMiddle;
            contentPanel.controls.Add(addBtn);


        }
    }
}
